<div id="wadget-location">
    <p class="location">您所在的位置：
        <a href="<?=url('home/index');?>">首页</a>>
        <a href="<?=url('newsnotice/index');?>">新闻/通知</a>>
        <a href="#"><?=$currentNews->category->category;?></a>>
        <?=$currentNews->title;?>
    </p>
    <?php if(isset($_GET['qtitlebody']) && is_object($qtitlebodyRecords)) { ?>
		<p class="qresult">
			<b>搜索结果：共有 <?=$qtitlebodyRecords->count();?> 条新闻符合<span style="text-decoration:underline;">关键字“<a href="#"><?=$_GET['qtitlebody'];?></a>”</span></b>
		</p>
		<ul>
			<?php if(!$qtitlebodyRecords->isEmpty()) { ?>
				<?php foreach($qtitlebodyRecords as $key => $n) { ?>
				<li><?=$key+1;?>. <a title="<?=mb_substr(strip_tags($n->body), 0, Q::ini('appini/alink_title'), 'utf-8');?>" href="<?=url('newsnotice/index', array('news_id'=>$n->news_id, 'title'=>mb_substr($n->title, 0, Q::ini('appini/ahref_title'), 'utf-8')));?>"><?=$n->title;?>
				<?php if(!$n->attachments->isEmpty()) { ?>
				<img src="misc/with-attachment.gif" alt="attachmentMark" />
				<?php } ?>
				</a></li>
				<?php } ?>
			<?php } else { ?>
			<li>抱歉，没有相关新闻，请尝试更换关键字再试一次</li>
			<li>或者您也可以 <a href="<?=url('newsnotice/index');?>">查看最新发布的一条新闻</a></li>
			<?php } ?>
		</ul>
    <?php } ?>
	<?php if(isset($_GET['qtitlebody']) && !is_object($qtitlebodyRecords)) { ?>
		<p class="qresult"><b class="highlight">关键字非法</b></p>
	<?php } ?>

    <?php if(isset($_GET['tag']) && is_object($tagRecords)) { ?>
    <p class="qresult">
        <b>搜索结果：共有 <?=$tagRecords->count();?> 条新闻符合<span style="text-decoration:underline;">标签“<a href="#"><?=$_GET['tag'];?></a>”</span></b>
    </p>
    <ul>
        <?php if(!$tagRecords->isEmpty()) { ?>
            <?php foreach($tagRecords as $key => $n) { ?>
            <li><?=$key+1;?>. <a title="<?=mb_substr(strip_tags($n->body), 0, Q::ini('appini/alink_title'), 'utf-8');?>" href="<?=url('newsnotice/index', array('news_id'=>$n->news_id, 'title'=>mb_substr($n->title, 0, Q::ini('appini/ahref_title'), 'utf-8')));?>"><?=$n->title;?>
            <?php if(!$n->attachments->isEmpty()) { ?>
            <img src="misc/with-attachment.gif" alt="attachmentMark" />
            <?php } ?>
            </a></li>
            <?php } ?>
        <?php } else { ?>
        <li>抱歉，没有相关新闻，请尝试更换关键字再试一次</li>
        <li>或者您也可以 <a href="<?=url('newsnotice/index');?>">查看最新发布的一条新闻</a></li>
        <?php } ?>
    </ul>
    <?php } ?>
	<?php if(isset($_GET['tag']) && !is_object($tagRecords)) { ?>
		<p class="qresult"><b class="highlight">关键字非法</b></p>
	<?php } ?>
</div><!-- /wadget-location -->